package mhwi.powers;

import com.megacrit.cardcrawl.core.AbstractCreature;
import mhwi.helper.ModHelper;

public class LianQiPower extends TemplatePower {
    private static final Class<? extends TemplatePower> CLASS = LianQiPower.class;
    private static final String CLASS_NAME = CLASS.getSimpleName();
    public static final String POWER_ID = ModHelper.makeId(CLASS_NAME);

    public LianQiPower(AbstractCreature owner, int amount) {
        super(owner, amount, CLASS);
    }

    @Override
    public void updateDescription() {
        this.description = super.DESCRIPTIONS[0];
    }

    @Override
    public void stackPower(int stackAmount) {
        if (this.amount + stackAmount > 5) {
            stackAmount = 5 - this.amount;
        }
        super.stackPower(stackAmount);
    }

    @Override
    public void atEndOfRound() {
    }
}
